<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
			<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<title>精选页面</title>
		<link rel="stylesheet" href="css/jx.css" />
	</head>
	<body>
		<ul class="top-ul">
			<li ui-sref="/jx.jptj" id="aaa" ui-sref-active="act2">精品推荐</li>
			<li ui-sref="/jx.scgl" ui-sref-active="act2">收藏攻略</li>
		</ul>
		<div>
			<ui-view></ui-view>
		</div>
	</body>
</html>
<script>
//	var li=document.querySelector("li");
//	fot(var i=0;i<li.length;i++){
//		li[i].onclick=function(){
////			this.style.color="red";
////				alert(this.index());
//				console.log(this.index());
//		}
//	}
var aaa=documet.getElementById("aaa");
aaa.onclick=function(){
	console.log("aaa");
}
</script>
